package com.lsp.server.product.service;

import com.lsp.server.product.domain.po.ProductAttr;
import com.lsp.server.product.mapper.AttrMapper;
import com.lsp.server.utils.TablePageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @ClassName AttrService
 * @Description 属性管理业务层
 * @Author Mr Hao
 * @Date 2021/11/23 15:16
 */
@Service
public class AttrService {
    @Autowired
    private AttrMapper attrMapper;

    /**
     * 获取商品属性列表
     * @return
     */
    public TablePageData getList(Map map) {
        return new TablePageData(attrMapper.queryCount(map),attrMapper.queryData(map));
    }
}
